home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / faqs / lilo-faq < prev    next >
Encoding:
Text File  |  1995-09-10  |  11.0 KB  |  227 lines

  1. LILO  -  Frequently Asked Questions   Version 1                 16-AUG-1993
  2. ===========================================================================
  3.  
  4. This FAQ consists of two parts: the first part contains a few remarks about
  5. common sources of confusion. The second part contains questions and
  6. answers.
  7.  
  8. Please send comments about this FAQ to almesber@nessie.cs.id.ethz.ch or
  9. almesber@bernina.ethz.ch
  10.  
  11.  
  12. General remarks
  13. ---------------
  14.  
  15. Don't try installing LILO by typing commands like
  16. /etc/lilo/lilo -i /etc/lilo/boot.b /vmlinux
  17.   First, this doesn't work with version 0.10 and above. Second, you will
  18.   have to refresh the installation whenever the kernel or any part of LILO
  19.   is changed. It is therefore advisable to store the configuration data in
  20.   a file. (Typically /etc/lilo/config)
  21.   
  22. /etc/lilo/install vs. /etc/lilo/config
  23.   Versions before 0.7 did expect all settings, kernel names, etc. on the
  24.   command line. Because such command lines usually became complicated and
  25.   hard to remember, everything was stored in /etc/lilo/install. This script
  26.   was run whenever the installation had to be refreshed. Version 0.7
  27.   introduced a more elegant configuration method: the configuration file
  28.   /etc/lilo/config. When using /etc/lilo/config, /etc/lilo/install only
  29.   contained the invocation of /etc/lilo/lilo with the necessary option.
  30.   That "new" /etc/lilo/install also appeared under the name install.new.
  31.   Starting with LILO 0.10, only the new-style configuration method is
  32.   supported. Because of that, no additional command-line options are needed
  33.   anymore and /etc/lilo/install can even be replaced by a link to
  34.   /etc/lilo/lilo.
  35.  
  36. /etc/lilo/boot.NNNN installed by your favourite distribution
  37.   Some Linux distributions install some boot.NNNN files in /etc/lilo before
  38.   LILO is run. This is dangerous, because a) you may accidentially use
  39.   those files and b) it prevents LILO from generating the correct boot.NNNN
  40.   files when installing itself on your system. (boot.NNNN are backup copies
  41.   of boot sectors.) Just delete any alien boot.NNNN files from your system
  42.   before using LILO.
  43.  
  44. QuickInst
  45.   ... is a shell script that helps you installing and configuring LILO. It
  46.   doesn't use every single feature of LILO and does not support some exotic
  47.   configurations, but it's usually a good way to get started. You can also
  48.   use it to create a sample /etc/lilo/config and modify that later.
  49.  
  50.  
  51. Q&A
  52. ---
  53.  
  54. Q: What is LILO ?
  55. A: LILO is a generic boot loader for Linux. "generic" means that it is able
  56.    to boot kernels from all Linux file systems. It can also act as a boot
  57.    manager for non-Linux operating systems.
  58.  
  59. Q: Which version of LILO should I use ?
  60. A: Versions before 0.7 are obsolete and should be avoided. Versions since
  61.    0.8 come with a quick installation script that simplifies "standard"
  62.    installations. The current version is 0.11.
  63.  
  64. Q: How do I get LILO ?
  65. A: LILO can be found in
  66.    tsx-11.mit.edu:/pub/linux/packages/lilo
  67.    sunsite.unc.edu:/pub/Linux/system/Linux-boot/lilo
  68.  
  69. Q: What about documentation ?
  70. A: LILO documentation exists in the following formats:
  71.     - LaTeX source, contained in lilo.N.tar.z
  72.     - plain-ASCII README, contained in lilo.N.tar.z
  73.     - ready to print PostScript, lilo.u.N.ps.z and lilo.t.N.ps.z
  74.     - ready to print HP DeskJet and HP LaserJet data, lilo.u.N.dj.z and
  75.       lilo.t.N.dj.z
  76.    N is the respective version number. The lilo.u* files are the user's
  77.    manual, lilo.t* are the technical overview.
  78.    Note: the README does not contain a few introductory sections of the
  79.          LaTeX manual.
  80.  
  81. Q: I don't want to read that many pages only to use a boot loader.
  82. A: Then you should try to use QuickInst. If your system configuration is
  83.    too complex for QuickInst or if you run into unexpected problems and
  84.    this FAQ doesn't help, I'm afraid you can't avoid reading the
  85.    documentation.
  86.  
  87. Q: I feel uncertain about that booting stuff. What should I read ?
  88. A: The first section of the LaTeX documentation of LILO contains an
  89.    introduction of how PC disks are partitioned and how operating systems
  90.    are booted. The following sections describe boot concepts and show them
  91.    on a few examples. Those sections are not included in the plain-ASCII
  92.    README, because they contain complex drawings.
  93.  
  94. Q: Can I use LILO as a boot manager ?
  95. A: Yes. It is known to work with PC/MS-DOS and OS/2. It probably also works
  96.    with many other operating systems.
  97.  
  98. Q: How do I boot other operating systems from LILO ?
  99. A: You simply add sections to /etc/lilo/config, describing the location of
  100.    the operating system, its name and the partition table, e.g.
  101.  
  102.     other = /dev/hda1  # partition on which the operating system is located
  103.       label = dos      # name by which you want it to be identified
  104.       table = /dev/hda # partition table of that disk
  105.  
  106.    Then re-run /etc/lilo/install
  107.  
  108. Q: How do I boot other operating systems from the second drive ?
  109. A: You have to add the line
  110.      loader = /etc/lilo/any_d.b         (DOS, etc.)
  111.    or
  112.      loader = /etc/lilo/os2_d.b         (OS/2)
  113.    to the corresponding OTHER = ... section of /etc/lilo/config
  114.  
  115. Q: I still can't boot DOS from the second drive.
  116. A: Disable the first drive and verify that you can boot from the second
  117.    drive if it is the first drive. If you can't, try using SYS to install
  118.    the system files. If all else fails, use FDISK /MBR and/or FORMAT /S .
  119.  
  120. Q: How do I set the default kernel/operating system ?
  121. A: The first kernel or operating system defined in /etc/lilo/config is
  122.    booted by default. Don't forget to re-run /etc/lilo/install after
  123.    reordering the sections.
  124.  
  125. Q: LILO doesn't boot my SCO/ISC/etc. What can I do ?
  126. A: Verify that your configuration is correct. Re-run /etc/lilo/install. If
  127.    all else fails, try to use a different boot manager, e.g. bootactv.
  128.  
  129. Q: Where should I install LILO's boot sector ?
  130. A: If you have a Linux file system on a primary partition of your first
  131.    hard disk, you should install the LILO boot sector there and make that
  132.    partition active (or use some boot manager). Otherwise, you can install
  133.    the LILO boot sector as your MBR (e.g. on /dev/hda) or possibly on an
  134.    extended partition (see the LaTeX documentation for details).
  135.  
  136. Q: How do I uninstall LILO ?
  137. A: If you've installed LILO as your MBR (/dev/hda or /dev/sda) and if your
  138.    previous MBR was the "standard" DOS MBR, you can remove LILO from the
  139.    MBR by simply booting MS-DOS 5.0 and running the command
  140.    FDISK /MBR
  141.    (If you're running DR-DOS 6, the FDISK menu offers a similar option.)
  142.    Otherwise, if you haven't installed LILO as your MBR, you can simply
  143.    disable it by making a different partition active. The active partition
  144.    can be changed with MS-DOS' FDISK, Linux fdisk, LILO's activate, etc.
  145.    Finally, if you've installed LILO as your MBR, but you're using a
  146.    special MBR, or if your version of DOS does no support replacing the
  147.    MBR, you should look for a file /etc/lilo/boot.0300 (IDE) or
  148.    /etc/lilo/boot.0800 (SCSI). See the next item for a description of how
  149.    to use that file.
  150.  
  151. Q: I can't access my PC/MS-DOS partition after installing LILO. Am I lost ?
  152. A: Not necessarily. You've probably only overwritten the boot sector of
  153.    your MS-DOS partition. That boot sector contains vital information about
  154.    the file system structure. (Note: unlike MS-DOS, Linux file systems do
  155.    not use the first sector and LILO can therefore store its boot sector
  156.    there.) Whenever LILO overwrites a boot sector for the first time, it
  157.    makes a backup copy in /etc/lilo, named boot.NNNN. The number
  158.    corresponds to the number of the respective device, e.g. hda is 0300,
  159.    hda1 is 0301, sda is 0800, sda1 is 0801, etc. You can restore the old
  160.    boot sector with a command like
  161.    dd if=/etc/lilo/boot.NNNN of=/dev/XXXX bs=446 count=1
  162.    E.g. dd if=/etc/lilo/boot.0302 of=/dev/hda2 bs=446 count=1
  163.  
  164.    WARNING: check the date of the boot.NNNN file. Sometimes, distributions
  165.             that contain LILO come with boot.NNNN files from the system on
  166.             which the distribution was created. Those files should be
  167.             deleted before using LILO.
  168.  
  169. Q: Why does LILO stop with "Error 0x04" when booting from a floppy ?
  170. A: Your BIOS may suffer from a bug that generates errors when trying to
  171.    read more than one sector with a single call. LILO 0.11 is able to
  172.    correct that problem. When using an older version of LILO, removing the
  173.    option COMPACT from /etc/lilo/config works around it.  
  174.  
  175. Q: LILO used to work, but since I've updated LILO/compiled a new kernel/
  176.    installed a new version of SLS, LILO only prints "LI".
  177. A: Be sure to re-run /etc/lilo/install whenever the kernel or any part of
  178.    LILO is changed. Running /etc/lilo/install too often doesn't hurt, but
  179.    forgetting to run it does. By the way, the kernel Makefile has two
  180.    targets that automatically run /etc/lilo/install after building a new
  181.    kernel: "lilo" builds /vmlinux (not compressed) and "zlilo" builds
  182.    /vmlinuz (compressed). If you're not installing LILO as the MBR, you
  183.    should also verify that the partition on which LILO puts its boot sector
  184.    is marked active and that the MBR contains a valid partition loader (and
  185.    not the remains of an earlier installation of LILO).
  186.  
  187. Q: LILO only prints "LI" on my SCSI system.
  188. A: In prehistorical times, SCSI users had to describe the geometry of their
  189.    disks in a file called /etc/lilo/disktab. Recent kernels are able to
  190.    provide that information for most SCSI adapters. Hence,
  191.    /etc/lilo/disktab is not necessary and may only introduce errors. If you
  192.    have a disktab with non-comment entries, try running /etc/lilo/install
  193.    with the option  -f /dev/null  If LILO needs a disktab, it will issue an
  194.    error message.
  195.  
  196. Q: My kernel boots but dies with "VFS: Unable to mount root".
  197. A: Your kernel is not properly configured. You can either run rdev on it to
  198.    set the root device or put the corresponding ROOT=/dev/xxxx entry into
  199.    /etc/lilo/config and re-run /etc/lilo/install
  200.  
  201. Q: What does "Device 0xNNNN: Invalid partition table, Nth entry" mean ?
  202. A: Each partition entry contains linear (Nth sector on the disk) and 3D
  203.    (sector/head/cylinder) addresses. Both types of addresses must
  204.    correspond. In your partition table, they don't. This is probably caused
  205.    by a buggy fdisk using non-cylinder-aligned addresses and some other
  206.    program later re-aligning one part of the address. LILO can try to fix
  207.    the partition table. The exact procedure depends on the version of LILO.
  208.    Please check the documentation. The cleanest (but also most painful)
  209.    solution to the problem is to re-partition the disk with a version of
  210.    fdisk that obeys alignment rules (e.g. any current version of Linux
  211.    fdisk).
  212.  
  213. Q: Do LILO and OS/2 Boot Manager get along well ?
  214. A: Yes, but some people have reported they had to (re)install LILO after
  215.    installing OS/2. A different solution is to avoid OS/2 BM and boot OS/2
  216.    directly by LILO.
  217. -- 
  218.    _________________________________________________________________________
  219.   / Werner Almesberger, ETH Zuerich, CH      almesber@nessie.cs.id.ethz.ch /
  220.  /_IFW_A44_______________________________________almesber@bernina.ethz.ch_/
  221.  
  222. -- 
  223. Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
  224.  
  225.  
  226.  
  227.